package com.CST.service.impl;

import com.CST.common.api.ResultObject;
import com.CST.dto.InSourceDTO;
import com.CST.entity.EtlIncomeoutsource;
import com.CST.mapper.cst.EtlIncomeoutsourceMapper;
import com.CST.service.IEtlIncomeoutsourceService;
import com.CST.vo.InSourceVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ly
 * @since 2022-01-06
 */
@Service
public class EtlIncomeoutsourceServiceImpl extends ServiceImpl<EtlIncomeoutsourceMapper, EtlIncomeoutsource> implements IEtlIncomeoutsourceService {
    
    @Autowired
    private EtlIncomeoutsourceMapper etlIncomeoutsourceMapper;

    /**
     * 获取门诊收入列表 并获得汇总
     * @return
     */
    @Override
    public ResultObject listEtlInComeOutSource(InSourceDTO inSourceDTO) {
        List<InSourceVO> inSourceVOList = etlIncomeoutsourceMapper.listEtlInComeOutSource(inSourceDTO);
        return ResultObject.successReturn(inSourceVOList);
    }
}
